package cn.ecsd.entity;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


/**
 * BizClaimVoucherStatistics entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name="biz_claim_voucher_statistics"
    ,catalog="jboa"
)

public class BizClaimVoucherStatistics  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private SysDepartment sysDepartment;
     private Double totalCount;
     private Integer year;
     private Integer month;
     private Timestamp modifyTime;


    // Constructors

    /** default constructor */
    public BizClaimVoucherStatistics() {
    }

    
    /** full constructor */
    public BizClaimVoucherStatistics(SysDepartment sysDepartment, Double totalCount, Integer year, Integer month, Timestamp modifyTime) {
        this.sysDepartment = sysDepartment;
        this.totalCount = totalCount;
        this.year = year;
        this.month = month;
        this.modifyTime = modifyTime;
    }

   
    // Property accessors
    @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="ID", unique=true, nullable=false)

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
	@ManyToOne(fetch=FetchType.LAZY)
        @JoinColumn(name="DEPARTMENT_ID", nullable=false)

    public SysDepartment getSysDepartment() {
        return this.sysDepartment;
    }
    
    public void setSysDepartment(SysDepartment sysDepartment) {
        this.sysDepartment = sysDepartment;
    }
    
    @Column(name="TOTAL_COUNT", nullable=false, precision=20)

    public Double getTotalCount() {
        return this.totalCount;
    }
    
    public void setTotalCount(Double totalCount) {
        this.totalCount = totalCount;
    }
    
    @Column(name="YEAR", nullable=false)

    public Integer getYear() {
        return this.year;
    }
    
    public void setYear(Integer year) {
        this.year = year;
    }
    
    @Column(name="MONTH", nullable=false)

    public Integer getMonth() {
        return this.month;
    }
    
    public void setMonth(Integer month) {
        this.month = month;
    }
    
    @Column(name="MODIFY_TIME", nullable=false, length=0)

    public Timestamp getModifyTime() {
        return this.modifyTime;
    }
    
    public void setModifyTime(Timestamp modifyTime) {
        this.modifyTime = modifyTime;
    }
   








}